-- GENERATED SPELL FOR [Withered Mistress] --


function spell0_14825(pUnit, Event) --@Curse of Blood,n/a--
pUnit:FullCastSpellOnTarget(24673,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14825', 636, 1)
end

function spell1_14825(pUnit, Event) --@Dispel Magic,n/a--
pUnit:FullCastSpellOnTarget(17201,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14825', 563, 1)
end

function spell2_14825(pUnit, Event) --@Unholy Frenzy,n/a--
pUnit:FullCastSpellOnTarget(24672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14825', 20000, 1)
end

function spell3_14825(pUnit, Event) --@Veil of Shadow,Heal--
pUnit:FullCastSpellOnTarget(24674,pUnit)
pUnit:RegisterEvent('Sorts_14825', 10327, 1)
end

function Sorts_14825(pUnit, Event)
local choix_sorts_14825 = math.random(0, 3)
if choix_sorts_14825 == 0 then
pUnit:RegisterEvent('spell0_14825', 1, 1)
end
if choix_sorts_14825 == 1 then
pUnit:RegisterEvent('spell1_14825', 1, 1)
end
if choix_sorts_14825 == 2 then
pUnit:RegisterEvent('spell2_14825', 1, 1)
end
if choix_sorts_14825 == 3 then
pUnit:RegisterEvent('spell3_14825', 1, 1)
end
end

function mob14825_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14825', math.random(1500, 3000), 1)
end

function mob14825_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14825_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14825_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14825, 1, 'mob14825_Action')
RegisterUnitEvent(14825, 2, 'mob14825_Leave')
RegisterUnitEvent(14825, 3, 'mob14825_Kill')
RegisterUnitEvent(14825, 4, 'mob14825_Die')
